Micron Document
🎖️GitЯра🎖️


Displaying Raw • Download

core/repository/src/commonMain/kotlin/org/meshtastic/core/repository/MeshLocationManager.kt bf929c20f274232e0eb8ddc19b2dc82403e99e5b (bf929c20) Text, 1.43 KB

T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.core.repository

Tff7b72import T7ee787kotlinx.coroutines.CoroutineScope
Tff7b72import T7ee787org.meshtastic.proto.Position

T8b949e/** Interface for managing the local node's location updates and reporting. */
Tff7b72interface T56d364MeshLocationManager Tb4b4b4{
T8b949e/** Starts location updates and reports them via the given function. */
Tff7b72fun Td2a8ffstartTb4b4b4(Te6edf3scopeTb4b4b4: Te6edf3CoroutineScopeTb4b4b4, Te6edf3sendPositionFnTb4b4b4: Te6edf3suspend Tb4b4b4(Te6edf3PositionTb4b4b4) Tff7b72-Tff7b72> Tffa657UnitTb4b4b4)

T8b949e/**
* Retries starting location updates using the previously-provided scope and callback.
*
* Call this after a permission grant or GPS enablement to re-check conditions and start location updates that were
* skipped on the initial [start] call.
*/
Tff7b72fun Td2a8ffrestartTb4b4b4(Tb4b4b4)

T8b949e/** Stops location updates. */
Tff7b72fun Td2a8ffstopTb4b4b4(Tb4b4b4)
Tb4b4b4}

Served by rngit 1.5.0 - Generated in 0.04s